var app=new Vue({
    el:"#app",
    data:{
        city:"",
        weatherList:[]
    },
    methods:{
        searchWeather:function(){
          //  console.log("tinaqichaxun");
           // console.log(this.city);
           var that=this;
           axios.get("http://wthrcdn.etouch.cn/weather_mini?city="+this.city)
           .then(function(response){
            console.log(response);
           //console.log(response.data.data.froecast)
           that.weatherList=response.data.data.forecast;
           },function(err){})
        },
        changeCity:function(city){
            this.city=city;
            this.searchWeather();
        }
    }
})